package com.framework.common.sms;

import com.framework.common.sms.interfaces.IAdvanceSmsService;

public class SmsServiceFactory{
    public SmsServiceFactory(){

    }

    public static <R,S> IAdvanceSmsService<R,S> create(String type){
        IAdvanceSmsService<R,S> service = null;
        switch (type){
            case "tencent":
                service = (IAdvanceSmsService<R, S>) new TencentCloudSmsService();
                break;
            default:
                break;
        }
        return service;
    }

}
